<!DOCTYPE html>
<html lang="zh-CN" xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title> 查看通道详情</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/>
    <link rel="shortcut icon" href="/static/favicon.ico" type="image/x-icon"/>
    <link rel="stylesheet" href="/static/css/font.css">
    <link rel="stylesheet" href="/static/css/xadmin.css">
    <script type="text/javascript" charset="utf-8" src="/static/js/jquery-1.11.3.min.js"></script>
    <script src="/static/lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="/static/js/xadmin.js"></script>
</head>
<body>
<div class="x-body">
    <table class="layui-table">
        <thead>
        <tr>
            <th>标题</th>
            <th>详情</th>
        </tr>
        </thead>
        <tbody>
        <tr>
            <td>ID:</td>
            <td>${model.id!}</td>
        </tr>
        <tr>
            <td>通道名称:</td>
            <td>${model.epayName!}</td>
        </tr>
        <tr>
            <td>商户ID:</td>
            <td>${model.pid!}</td>
        </tr>
        <tr>
            <td>公众号APPID:</td>
            <td>${model.appId!}</td>
        </tr>
        <tr>
            <td>公众号秘钥:</td>
            <td>${model.publicKeyGzh!}</td>
        </tr>
        <tr>
            <td>商户秘钥:</td>
            <td>${model.publicKeyMch!}</td>
        </tr>
        <tr>
            <td>微信移动支付:</td>
            <td><%if(model.payMode! ==0){%>微信H5支付<%}else{%>微信WAP支付<%}%></td>
        </tr>
        <tr>
            <td>排序号:</td>
            <td>${model.orderBy!}</td>
        </tr>
        <tr>
            <td>最小支付:</td>
            <td>${model.minPayMoney!}</td>
        </tr>
        <tr>
            <td>最大支付:</td>
            <td>${model.maxPayMoney!}</td>
        </tr>
        <tr>
            <td>创建时间:</td>
            <td>${model.createTime!,dateFormat='yyyy-MM-dd HH:mm:ss'}</td>
        </tr>
        <tr>
            <td>修改时间:</td>
            <td>${model.optTime!,dateFormat='yyyy-MM-dd HH:mm:ss'}</td>
        </tr>
        <tr>
            <td>状态:</td>
            <td><%if(model.status! == 0){%>禁用<%}else if(model.status! == 1){%>启用<%}else{%>未知<%}%></td>
        </tr>
        <tr>
            <td>API证书:</td>
            <td>${cert!'未上传'}</td>
        </tr>
    </table>
    <div style="text-align: center;">
        <button class="layui-btn layui-btn-normal" onclick="test_conn('${model.id!}',2,1)">接口测试</button>
        <button class="layui-btn layui-btn-warm" onclick="x_admin_close()">关&nbsp;&nbsp;闭</button>
    </div>
</div>
</body>
<script>
    $(function () {
        layui.use('laydate', function () {
            var laydate = layui.laydate;
            //执行一个laydate实例
            laydate.render({
                elem: '#start' //指定元素
            });
            //执行一个laydate实例
            laydate.render({
                elem: '#end' //指定元素
            });
        });
    });

    function test_conn(conn_id, conn_type, payType) {
        window.open("/quickpass/test?payType=" + payType + "&conn_id=" + conn_id + "&conn_type=" + conn_type);
    }

</script>
</html>